import Vue from "vue";
import vueRouter from 'vue-router'
import Home from '../pages/Home'
import List from '../pages/List'
import Music from '../pages/Home/Music'
import Play from '../pages/Home/Play'
import Work from '../pages/Home/Work'
Vue.use(vueRouter)
export default new vueRouter({
    routes: [
        {
            path: '/home',
            component: Home,
            redirect: "/home/music",
            children: [
                {
                    path: '/home/music',
                    component: Music,
                },
                {
                    path: '/home/play',
                    component: Play,
                    name: 'play'
                },
                {
                    path: '/home/work',
                    component: Work,
                },
            ]
        },
        {
            path: '/list',
            component: List,
        },
    ]
})